package gy.com.sansharescuesystem.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by 陈秋霖 on 2017-07-26.
 */

public class RescueListResData implements Parcelable{
    private String id;
    private String serial;
    private String log;
    private String lat;
    private String status;
    private String c_time;
    private String e_time;
    private String actor1;
    private String operation_end;
    private String time;
    private String over_type;
    private String ship;
    private String num;

    public RescueListResData() {
    }

    public RescueListResData(String id, String serial, String log, String lat, String status, String c_time, String e_time, String actor1, String operation_end, String time, String over_type, String ship, String num) {
        this.id = id;
        this.serial = serial;
        this.log = log;
        this.lat = lat;
        this.status = status;
        this.c_time = c_time;
        this.e_time = e_time;
        this.actor1 = actor1;
        this.operation_end = operation_end;
        this.time = time;
        this.over_type = over_type;
        this.ship = ship;
        this.num = num;
    }

    protected RescueListResData(Parcel in) {
        id = in.readString();
        serial = in.readString();
        log = in.readString();
        lat = in.readString();
        status = in.readString();
        c_time = in.readString();
        e_time = in.readString();
        actor1 = in.readString();
        operation_end = in.readString();
        time = in.readString();
        over_type = in.readString();
        ship = in.readString();
        num = in.readString();
    }

    public static final Creator<RescueListResData> CREATOR = new Creator<RescueListResData>() {
        @Override
        public RescueListResData createFromParcel(Parcel in) {
            return new RescueListResData(in);
        }

        @Override
        public RescueListResData[] newArray(int size) {
            return new RescueListResData[size];
        }
    };

    @Override
    public String toString() {
        return "RescueListResData{" +
                "id='" + id + '\'' +
                ", serial='" + serial + '\'' +
                ", log='" + log + '\'' +
                ", lat='" + lat + '\'' +
                ", status='" + status + '\'' +
                ", c_time='" + c_time + '\'' +
                ", e_time='" + e_time + '\'' +
                ", actor1='" + actor1 + '\'' +
                ", operation_end='" + operation_end + '\'' +
                ", time='" + time + '\'' +
                ", over_type='" + over_type + '\'' +
                ", ship='" + ship + '\'' +
                ", num='" + num + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSerial() {
        return serial;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    public String getLog() {
        return log;
    }

    public void setLog(String log) {
        this.log = log;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getC_time() {
        return c_time;
    }

    public void setC_time(String c_time) {
        this.c_time = c_time;
    }

    public String getE_time() {
        return e_time;
    }

    public void setE_time(String e_time) {
        this.e_time = e_time;
    }

    public String getActor1() {
        return actor1;
    }

    public void setActor1(String actor1) {
        this.actor1 = actor1;
    }

    public String getoperation_end() {
        return operation_end;
    }

    public void setoperation_end(String operation_end) {
        this.operation_end = operation_end;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getOver_type() {
        return over_type;
    }

    public void setOver_type(String over_type) {
        this.over_type = over_type;
    }

    public String getShip() {
        return ship;
    }

    public void setShip(String ship) {
        this.ship = ship;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(serial);
        dest.writeString(log);
        dest.writeString(lat);
        dest.writeString(status);
        dest.writeString(c_time);
        dest.writeString(e_time);
        dest.writeString(actor1);
        dest.writeString(operation_end);
        dest.writeString(time);
        dest.writeString(over_type);
        dest.writeString(ship);
        dest.writeString(num);
    }
}
